10/01/2002
5:45 PM

 

PreviousNext
 
   
Frankentosh: Building Robots using Mac OS X
 
   
  • Robocode -- Analying & Action
    • Once you've gotten a decent idea where the enemy will be, you can fire at it
    • When you fire at it, you can track your bullets -- and with that your bullet accuracy
    • Each time you fireBullet(), you're returned a Bullet object.
    • By organizing the information in the Bullet objects, you can analyze your firing accuracy, and see if you need to switch tracking patterns
 
   
Ted Stevko, Stevko Studios http://www.plasticnoodle.com